<#include "/common/layout.html">
    <@header>
</@header>
<@body>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <small>视频管理 > 视频列表</small>
        </h1>
    </section>
    <!-- Main content -->
    <section class="content">
        <!-- Your Page Content Here -->
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <form action="/movie/list/1" method="post" class="form-inline">
                        <div class="box-header">
                            <div class="input-group">
                                <a class="btn btn-primary dialog" href="javascript:;" data-title="上传视频" data-url="/movie/uploadIndex" data-width="1024" data-height="680"><i class="fa fa-plus"></i> 上传视频</a>
                            </div>
                            <div class="input-group">
                                <input type="text" name="search" value="${search!}" class="form-control" placeholder="搜索标题">
                                <div class="input-group-btn">
                                    <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                                    <a href="/movie/list/1" class="btn btn-default"><i class="fa fa-refresh"></i></a>
                                </div>
                            </div>
                        </div><!-- /.box-header -->
                    </form>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tr>
                                <th><input type="checkbox" class="minimal checkbox-toolbar"></th>
                                <th width="100px">ID</th>
                                <th>标题</th>
                                <th>图片</th>
                                <th>视频链接</th>
                                <th>上传时间</th>
                                <th width="100px">操作</th>
                            </tr>
                            <#list pageData.getRecords() as item>
                                <tr>
                                    <td>
                                        <label>
                                            <input type="checkbox" class="minimal checkbox-item">
                                        </label>
                                    </td>
                                    <td>${(item.id)!}</td>
                                    <td>${(item.title)!}</td>
                                    <td>${(item.headImgPath)!}</td>
                                    <td>${(item.filePath)!}</td>
                                    <td>${(item.createTime)!}</td>
                                    <td>
                                        <a class="btn btn-danger btn-xs"
                                           data-tiggle="ajax"
                                           data-submit-url="/movie/delete/${(item.id)!}"
                                           data-confirm="您确定要删除该条记录吗?">删除</a>
                                    </td>
                                </tr>
                            </#list>
                        </table>
                    </div><!-- /.box-body -->
                    <div class="box-footer row">
                        <div class="col-md-6">
                            <#include "/common/paginateBar.html" />
                            <@paginate pageData=pageData actionUrl="/movie/list/" />
                        </div>
                        <div class="col-md-6 pull-left">
                            <#include "/common/paginate.html" />
                            <@paginate currentPage=pageData.getCurrent() totalPage=pageData.getPages()
                            actionUrl="/movie/list/" urlParas="?pageSize=${pageSize!}" />
                        </div>
                    </div>
                </div><!-- /.box -->
            </div>
        </div>
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->
</@body>
<@footer>
</@footer>